import request from '@/plugin/axios'

export function getTopics(data) {
    return request({
        url: '/topic/page',
        method: 'post',
        data
    })
}

export function createTopic(data) {
    return request({
        url: '/topic/create',
        method: 'post',
        data
    })
}

export function deleteTopics(data) {
    return request({
        url: '/topic/recover',
        method: 'post',
        data
    })
}

export function updateTopic(data) {
    return request({
        url: '/topic/update',
        method: 'post',
        data
    })
}